package xjtu.zd.server.common.dao;

import xjtu.zd.server.common.Classification;
import xjtu.zd.server.common.model.User.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface CommonDao {


    @Select("select u_id userId,u_name userName,u_avatar avatar,u_pwd userPwd  from t_user where u_id = #{userId}")
    User findUserById(String userId);
    @Select("select sta_id userId,sta_name userName,sta_avatar avatar,sta_pwd userPwd  from t_staff where sta_id = #{userId}")
    User findStaffById(String userId);

    @Select("select * from t_class")
    List<Classification> findClass();
}
